package com.demo.config;

import com.demo.enumDemo.Weekday;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.ArrayList;
import java.util.List;

/**
 * created by yehao on 2018/7/19.
 */
public class TestMain {
    public static void main(String[] args){
        /*ApplicationContext context=new AnnotationConfigApplicationContext(TestConfig.class);

        TestBean testBean=(TestBean) context.getBean("testBean");
        testBean.sayHello();*/


      /*  List<String> list=new ArrayList<String>();
        list.add("1");
        list.add("2");
        list.add("3");
        String[] sarr=new String[list.size()];
        list.toArray(sarr);

        for (Object String :  sarr){
            System.out.println(String);
        }
        System.out.println(list);*/

        System.out.println("nowday ===>"+Weekday.THU);
        System.out.println("nowday int ==>"+Weekday.THU.ordinal());
        System.out.println("new ==>"+Weekday.getNetDay(Weekday.THU));

   }
}
